// 你自定义的 css
import './styles/main.css'
import './styles/tailwind/index.scss'
import 'babel-polyfill'

import App from './App.vue'
import axios from "axios";

// import VueMarkdownEditor from '@kangc/v-md-editor';
// import '@kangc/v-md-editor/lib/style/base-editor.css';
// import vuepressTheme from '@kangc/v-md-editor/lib/theme/vuepress.js';
// import '@kangc/v-md-editor/lib/theme/style/vuepress.css';

// import Prism from 'prismjs';

// VueMarkdownEditor.use(vuepressTheme, {
//   Prism,
// });

const app = createApp(App)

import useGlobalConfigStore from "~/stores/global-config";
const globalConfigStore = useGlobalConfigStore();

// app.use(MdEditor)

import config from '../package.json'

axios.get('/zhdisk.config.json').then((res) => {
  globalConfigStore.updateZfileConfig(res.data);
}).finally(() => {
  app.mount('#app')
})